import App from './App'
import '@/utils/utils.js'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import { createSSRApp } from 'vue'
export function createApp() {
  const pinia = createPinia()
  pinia.use(piniaPluginPersistedstate)
  // const app = createSSRApp(App)
  const app = createSSRApp(App)
  app.use(pinia)
  return {
    app
  }
}
